package com.yx.front.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 图书信息表
 * </p>
 *
 * @author YangXiong
 * @since 2023-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_book_message")
@ApiModel(value="BookMessage对象", description="图书信息表")
public class BookMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "书名")
    private String name;

    @ApiModelProperty(value = "作者")
    private String author;

    @ApiModelProperty(value = "分类")
    private String type;

    @ApiModelProperty(value = "分类")
    private String kind;

    @ApiModelProperty(value = "是否上架 0 未上架 1 已上架")
    private Integer enable;

    @ApiModelProperty(value = "状态")
    private String status;

    @ApiModelProperty(value = "大小")
    private String size;

    @ApiModelProperty(value = "图片地址")
    private String url;

    @ApiModelProperty(value = "简介")
    private String introduction;

    @ApiModelProperty(value = "最新章节")
    private String lastChapter;

    @ApiModelProperty(value = "最后更新时间")
    private Date lastUpdateTime;

    @ApiModelProperty(value = "是否删除，0未删，1已删")
    private Integer isDelete;


}
